//代理全局变量
export default function (that) {
  let handler = {
    get(target, key) {
      return target[key];
    },
    set(target, key, value) {
      target[key] = value;
      that.watch.$emit(key, value);
      return true;
    }
  }
  that.globalData = new Proxy({
    config: null
  }, handler)
}